import requests
from lxml import etree

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36'
}
url = 'https://pfsc.agri.cn/#/priceMarket'
res = requests.get(url, headers=headers, verify=False)
tree = etree.HTML(res.content.decode())
# article_list = tree.xpath('//article[@class="excerpt"]')
# for article in article_list:
#     print(article.xpath('./header/h2/a/text()')[0])
#     print(article.xpath('./p[@class="note"]/text()')[0])
print(res.text)
tr_list = tree.xpath('//tbody')
print(tr_list)
for tr in tr_list:
    td_1 = tr.xpath('./td[1]/span/text()')
    print(td_1)
